<template>
  <router-view />
</template>

<script lang="ts">
// import { ipcRenderer } from 'electron'
import { defineComponent } from 'vue'

export default defineComponent({
  name: 'App',
  mounted () {
    this.defineQsFn()
    this.createMenu()
    console.log(process.env)
  },
  methods: {
    createMenu () {
      if (window.process) {
        console.log('process')
      } else {
        // console.log(ipcRenderer)
      }
      console.log('App Container')
    },
    defineQsFn () {
      const qs: DoCall = () => {
        console.log(Date.now())
      }
      qs.run = () => {
        console.log('do run')
      }
      if (qs.run) qs.run(2080)

      qsctAPI.logger()
    }
  }
})
</script>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  color: #2c3e50;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
</style>
